@{        
    var deals = Groupon.GetDeals(divisionId: "chicago");
    
    var grid = new WebGrid(deals, canSort: false); 
}

<h3>Groupon.GetDeals() Method + WebGrid</h3>

<pre class="codePre">
@@{
    var deals = <strong>Groupon.GetDeals(divisionId: "chicago")</strong>;
    var grid = new WebGrid(deals, canSort: false); 
}   
@@grid.GetHtml(tableStyle: "dealsTable", columns: grid.Columns (...))
</pre>

<p>Displays Groupon deals for a division using the WebGrid:</p>

@grid.GetHtml(tableStyle: "dealsTable", 
              columns: grid.Columns(
                        grid.Column(format: @<text><img src="@item.mediumImageUrl"/></text>),
                        grid.Column(columnName: "announcementTitle", header: "Deal", style: "highlightColumn"),
                        grid.Column(columnName: "title", header: "Description"),
                        grid.Column(columnName: "soldQuantity", header: "Groupons Bought"),
                        grid.Column(format: @<text>@item.Options[0].Price.FormattedAmount</text>, header: "Price"),
                        grid.Column(format: @<text><a href="@item.dealUrl">More Details</a></text>)))